<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'FindAllUsers.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/fenye.css">
	<link rel="stylesheet" type="text/css" href="css/backTop.css">
<script type="text/javascript">
function DoEmpty()
{var params=document.getElementById("ll").value;
if (confirm("真的要删除这本通讯录吗？删除后此通讯录里的所有内容都将被删除并且无法恢复！"))
window.location = "BackBizEdit.action?id=" +params ;

</script>

 </head>
  
  <body>
   <c:if test="${empty sessionScope.manager}">
   <c:redirect url="backstage/login1.jsp"/>
   </c:if>
   
   <div id="s1">
<img src="img/backbank.jpg" width="1000" height="100"  />

<ul style="background-image:url(img/bank.jpg)">
<li style="font-size:14px">
<script language="JavaScript" type="text/JavaScript" src="js/time.js" ></script>
</li>
</ul>
</div>
   <table width="1000" style="margin:auto" class="newfont03">
 <tr>
 <td width="50" height="20"><strong>选择</strong>：</td>
 <td width="105" height="20" background="img/button10.gif" > <div align="center"><a href="backstage/addUser.jsp">添加功能</a></div></td>
 <td width="105" height="20" background="img/button10.gif" > <div align="center"><a href="backstage/backIndex.jsp">返回首页</a></div></td>
<td width="824"></td>
 </tr>  
   
   
   </table>
     <table width="1000" border="0" cellpadding="9" cellspacing="1" bgcolor="#CCCCCC" class="newfont03" style="margin:auto">
  
					                  <tr>
                    <td height="20" colspan="9"  bgcolor="#6795B4" style="padding-left:20px; color: #FFFFFF; font-size: 16px;"> 查看所有用户 </td>
                    </tr>
                  <tr>
				  
                    <td width="87"  height="20" align="center" bgcolor="#EEEEEE">用户名</td>
					<td width="70"  height="20" align="center" bgcolor="#EEEEEE">密码</td>
                    <td width="73"  align="center" bgcolor="#EEEEEE">姓名</td>
                    <td width="74"  align="center" bgcolor="#EEEEEE">昵称</td>
                    <td width="37"  align="center" bgcolor="#EEEEEE">性别</td>
                    <td width="37"  align="center" bgcolor="#EEEEEE">年龄</td>
                    <td width="160"  align="center" bgcolor="#EEEEEE">Email</td>
                    <td width="114"  align="center" bgcolor="#EEEEEE">电话</td>
                     <td width="114"  align="center" bgcolor="#EEEEEE">操作</td>
       </tr>
       	<c:forEach items="${list}" var="Users">
                  <tr>				 
                    <td height="20" bgcolor="#FFFFFF" ><div align="center" id="ll">${Users.username}</div></td>
					<td height="20" bgcolor="#FFFFFF" ><div align="center">${Users.password}</div></td>
					 <td bgcolor="#FFFFFF"><div align="center">${Users.name}</div></td>
                    <td bgcolor="#FFFFFF"><div align="center">${Users.nic}</div></td> 
                   <td bgcolor="#FFFFFF"><div align="center">${Users.sex}</div></td>
                    <td bgcolor="#FFFFFF"><div align="center">${Users.age}</div></td>
                     <td bgcolor="#FFFFFF"><div align="center">${Users.email}</div></td>
                      <td bgcolor="#FFFFFF"><div align="center">${Users.phone}</div></td>
                      <td bgcolor="#FFFFFF"><div align="center"><a href="BackBizEdit.action?id=${Users.id }">编辑</a>|<a  href="BackBizDel.action?id=${Users.id}" id="del"> 删除</a> </div></td>
                  </tr>
                  </c:forEach>
                  </table>
                  ${pagination}
  </body>
</html>
